package com.cp.admin.modular.user.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户相片信息
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-28
 */
@TableName("user_photo")
public class UserPhoto extends Model<UserPhoto> {

    private static final long serialVersionUID = 1L;

    /**
     * 照片id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 账户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 相片所属相册
     */
    @TableField("album_id")
    private Long albumId;
    /**
     * 照片
     */
    @TableField("photo_url")
    private String photoUrl;
    /**
     * 是否是付费照片0不是1是
     */
    @TableField("pay_photo")
    private Integer payPhoto;
    /**
     * 付费金额
     */
    private BigDecimal amount;
    /**
     * 收益
     */
    private BigDecimal income;
    /**
     * 0正常1删除
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Long albumId) {
        this.albumId = albumId;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public Integer getPayPhoto() {
        return payPhoto;
    }

    public void setPayPhoto(Integer payPhoto) {
        this.payPhoto = payPhoto;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getIncome() {
        return income;
    }

    public void setIncome(BigDecimal income) {
        this.income = income;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserPhoto{" +
        "id=" + id +
        ", userId=" + userId +
        ", albumId=" + albumId +
        ", photoUrl=" + photoUrl +
        ", payPhoto=" + payPhoto +
        ", amount=" + amount +
        ", income=" + income +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
